<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport"
	content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<link rel="stylesheet" href="<%=path%>/css/pintuer.css">
<link rel="stylesheet" href="<%=path%>/css/admin.css">
<link rel="shortcut icon" href="<%=path%>/images/login.jfif">
<script src="<%=path%>/js/jquery.js"></script>
<script type="text/javascript">
	
</script>

</head>

<body>
	<div class="panel admin-panel">
		<div class="panel-head" id="add">
			<strong><span class="icon-pencil-square-o"></span>审核慢性病报销表</strong>
		</div>
		<div class="body-content">
			<form id="form-addrole" method="post" class="form-x">
			
			<div class="form-group">
					<div class="label">
						<label>报销编号：</label>
					</div>
					<div class="field field-icon-right">
						<input type="text" class="input w50 input input-big" value="${reimbursement.reimbursement_id}" disabled="disabled"
							name="reimbursement_id" id="reimbursement_id_input" placeholder=""
							data-validate="required:" /> <span></span>
						<div class="tips"></div>
					</div>
				</div>
			
			<div class="form-group">
					<div class="label">
						<label>姓名：</label>
					</div>
					<div class="field field-icon-right">
						<input type="text" class="input w50 input input-big" value="${reimbursement.member_name}" disabled="disabled"
							name="member_name" id="member_name_input" placeholder=""
							data-validate="required:" /> <span></span>
						<div class="tips"></div>
					</div>
				</div>
				
				<div class="form-group">
					<div class="label">
						<label>身份证号：</label>
					</div>
					<div class="field field-icon-right">
						<input type="text" class="input w50 input input-big" value="${reimbursement.people_id}" disabled="disabled"
							name="people_id" id="people_id_input" placeholder=""
							data-validate="required:" /> <span></span>
						<div class="tips"></div>
					</div>
				</div>
				
				<div class="form-group">
					<div class="label">
						<label>农合证号：</label>
					</div>
					<div class="field field-icon-right">
						<input type="text" class="input w50 input input-big" value="${reimbursement.rural_id}" disabled="disabled"
							name="rural_id" id="rural_id_input" placeholder=""
							data-validate="required:" /> <span></span>
						<div class="tips"></div>
					</div>
				</div>
				
				<div class="form-group">
					<div class="label">
						<label>报销慢性病名称：</label>
					</div>
					<div class="field field-icon-right">
						<input type="text" class="input w50 input input-big" value="${reimbursement.disease_name}" disabled="disabled"
							name="disease_name" id="disease_name_input" placeholder=""
							data-validate="required:" /> <span></span>
						<div class="tips"></div>
					</div>
				</div>
				
				<div class="form-group">
					<div class="label">
						<label>报销年度：</label>
					</div>
					<div class="field field-icon-right">
						<input type="text" class="input w50 input input-big" value="${reimbursement.year}" disabled="disabled"
							name="year" id="year_input" placeholder=""
							data-validate="required:" /> <span></span>
						<div class="tips"></div>
					</div>
				</div>
				
				<div class="form-group">
					<div class="label">
						<label>家庭住址：</label>
					</div>
					<div class="field field-icon-right">
						<input type="text" class="input w50 input input-big" value="${reimbursement.family_adress}" disabled="disabled"
							name="family_adress" id="family_adress_input" placeholder=""
							data-validate="required:" /> <span></span>
						<div class="tips"></div>
					</div>
				</div>
				
				<div class="form-group">
					<div class="label">
						<label>报销金额：</label>
					</div>
					<div class="field field-icon-right">
						<input type="text" class="input w50 input input-big" value="${reimbursement.money}" disabled="disabled"
							name="pay_money" id="pay_money_input" placeholder=""
							data-validate="required:" /> <span></span>
						<div class="tips"></div>
					</div>
				</div>
				
				<div class="form-group">
                <div class="label">
                    <label>付款状态：</label>
                </div>
                <div class="field">
                    <select id="status" class="input w50" name="status">
                        <option value="0">未审核</option>
                        <option value="1">待付款</option>
                        <option value="2">已付款</option>
                    </select>
                    <div class="tips"></div>
                </div>
            </div>
				
				<div class="form-group">
					<div class="label">
						<label></label>
					</div>
					<div class="field">
						<button id="add_btn" class="button bg-main icon-check-square-o"
							onclick="updateReimbursement()" type="button">提交</button>
					</div>
				</div>
				
			</form>
		</div>
	</div>

</body>
<script type="text/javascript">
	function updateReimbursement() {
		var status = $("#status").val();
		var reimbursement_id = $("#reimbursement_id_input").val();
		$.ajax({
			type : "post",
			url : "<%=path%>/reimbursement/reimbursement_update_action",
			data : {
				status:status,
				reimbursement_id:reimbursement_id
			},
			
			success : function(result) {
			  if(result.code==100){
			   	 alert("审核成功！")
			  }else{
			  	  alert("审核失败！")
			  
			  }

			}
		})
	}
	

</script>
</html>
